<!-- sua bai viet-->
<?php echo validation_errors(); 
$data1 = array(
               'trangthai' => 1
            );
$this->db->where('id', $data->id);
$this->db->update('lienhe', $data1); 
?>

<div class="box_heading">
    <div class="icon">
    <img src="<?php echo base_url().'skin/admin/images/icon_settings.png';?>"/> Liên hệ ( <span style="color: red;"> * : không được để trống</span> )  <?php if(!empty($thongbao)){echo '<img src='.base_url().'template/admin/images/ok.png class="ok"><font color=red><b>'.$thongbao.'</b></font>';}?>
    </div>
    <div class="right">    
    <a href="<?php echo base_url().'admin/xuly/lienhe/list';?>">Quay lại</a>
    </div>
</div>

<div class="box_noidung">
<table class="form">
<tr><td><font color=red>* </font>Tên</td><td><?php if(!empty($data)){echo $data->ten;};?></td></tr>
<tr><td><font color=red>* </font>Email</td><td><?php if(!empty($data)){echo $data->email;};?></td></tr>
<tr><td><font color=red>* </font>Điện thoại</td><td><?php if(!empty($data)){echo $data->dienthoai;};?></td></tr>
<tr><td><font color=red>* </font>Địa chỉ</td><td><?php if(!empty($data)){echo $data->diachi;};?></td></tr>
<tr><td><font color=red>* </font>Ngày gửi</td><td><?php if(!empty($data)){echo $data->ngay;};?></td></tr>
<tr><td><font color=red>* </font>Nội dung</td><td><?php if(!empty($data)){echo $data->thongtin;};?></td></tr>

</table>
</div>
